package com.neusoft.yuejian_6.service;

import com.neusoft.yuejian_6.javabean.Train;
import com.neusoft.yuejian_6.javabean.Trainn;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface TrainService {
    @GET("Train/getTrain")
    Call<List<Train>> getTrainlist();

    //培训详情
    @GET("Train/Traindetail")
    Call<Train> gettraindetail(@Query("train_id") int train_id);

    @GET("Train/getCainiaoTrain")
    Call<List<Train>> getCainiaoTrainlist();

    @GET("Train/getRumenTrain")
    Call<List<Train>> getRumenTrainlist();

    @GET("Train/getJinjieTrain")
    Call<List<Train>> getJinjieTrainlist();

    //报名培训
    @GET("Trainn/addtrainn")
    Call<Trainn> addtrainn(@Query("user_id") int user_id,
                           @Query("trainn_id") int trainn_id);

    @GET("Train/searchTrain")
    Call<List<Train>>searchTrain(@Query("train_name") String train_name);

}

